package com.zqh.apiuserlogin.controller;


import com.zqh.apiuserlogin.redis.RedisUtil;
import com.zqh.apiuserlogin.service.UsersLoginService;
import com.zqh.myfmmall.rowbeans.entity.Users;
import com.zqh.myfmmall.result.Result;
import com.zqh.myfmmall.utils.JwtUtil;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.HashMap;

/**
 * 用户 (Users)表控制层
 *
 * @author KONO 曾淇杭哒！
 * @since 2022-01-20 02:35:22
 */
@RestController
@RequestMapping("user")
@Api(tags = "用户管理")
public class UsersLoginController{
    @Resource
    private UsersLoginService usersLoginService;

    @GetMapping("login")
    public Result login(@RequestBody Users user) {
        return usersLoginService.login(user);
    }

}

